package ruru.client.backend.item;


/**
 * Represents an item in the bank.  Has a name and associated quantity.
 * @author zane.tian@gmail.com
 */
public class BankItem implements Item {
	private String name;
	private String type;
	private int quantity;
	
	public BankItem(int quantity, String name, String type) {
		this.name = name;
		this.type = type;
		this.quantity = quantity;
	}
	
	public String getName() {
		return name;
	}
	
	public int getQuantity() {
		return quantity;
	}
	
	public String getType() {
		return type;
	}
	
	public String toString() {
		return quantity + "x " + name;
	}

	public String wowheadUrl() {
//		return "http://wow.allakhazam.com/ihtml?" + StringUtil.convertSpaces(name);
		return "http://wow.allakhazam.com/ihtml?" + name;
	}
}